Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import VuePageTitle from '../src/index' |
||
6 | test('setup', t => { |
||
7 | t.plan(1) |
||
8 | const localVue = createLocalVue() |
||
9 | const router = { |
||
10 | afterEach: fn => { |
||
11 | const to = { |
||
12 | meta: { |
||
13 | title: 'Graal' |
||
14 | } |
||
15 | } |
||
16 | |||
17 | fn(to) |
||
18 | fn({}) // for covarage purposes |
||
19 | |||
20 | t.is(localVue.prototype.$title, 'Graal') |
||
21 | } |
||
22 | } |
||
23 | |||
24 | localVue.use(VuePageTitle, { router }) |
||
25 | }) |
||
26 |